<?php
namespace Admin\Model;

use Think\Model;

class MemberModel extends Model
{
    protected $tableName = 'member';

    protected $_validate = [
        ['email', 'email', '邮箱格式不正确！'],
        ['email', '', '邮箱地址已经存在', 0, 'unique', 1], //1代表添时校验
        ['nickname', '', '用户名已经存在', 0, 'unique', 1]
    ];




}